<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@page isELIgnored="false" %>
<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8" %>
<div class="bg">
    <div class="container">
        <div class="row main">
            <div class="main-login main-center">
                <h5>个人资料修改</h5>
                <form id="userInfoForm">

                    <div class="form-group">
                        <label for="username" class="cols-sm-2 control-label">真实姓名</label>
                        <div class="cols-sm-10">
                            <div class="input-group">
                                <span class="input-group-addon"><i class="fa fa-users fa" aria-hidden="true"></i></span>
                                <input type="text" class="form-control" name="username" id="username"
                                       value="${user.username}"/>
                            </div>
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="email" class="cols-sm-2 control-label">注册邮箱</label>
                        <div class="cols-sm-10">
                            <div class="input-group">
                                <span class="input-group-addon"><i class="fa fa-users fa" aria-hidden="true"></i></span>
                                <input type="text" class="form-control" name="email" id="email"
                                       value="${user.email}"/>
                            </div>
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="mobilenumber" class="cols-sm-2 control-label">手机号</label>
                        <div class="cols-sm-10">
                            <div class="input-group">
                                <span class="input-group-addon"><i class="fa fa-users fa" aria-hidden="true"></i></span>
                                <input type="text" class="form-control" name="mobilenumber" id="mobilenumber"
                                       value="${user.mobilenumber}"/>
                            </div>
                        </div>
                    </div>
                </form>
                <button type="button" id="setuserinfo"
                        class="btn btn-primary btn-lg btn-block login-button"
                        data-href="${pageContext.request.contextPath}/userinfo/edituserinfo">确定
                </button>
            </div>
        </div>
    </div>
</div>

<!-- Modal 通用提示消息模态框-->
<div class="modal fade" id="myModal" tabindex="-1" role="dialog"
     aria-labelledby="myModalLabel">
    <div class="modal-dialog modal-sm" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" id="doit" class="close" data-dismiss="modal"
                        aria-label="Close">
                    <span aria-hidden="true">&times;</span>
                </button>
                <h4 class="modal-title" id="myModalLabel" style="text-align:center;"></h4>
            </div>
            <div class="modal-body"></div>
        </div>
    </div>
</div>
<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
<script src="${pageContext.request.contextPath}/bootstrap-3.3.7-dist/js/jquery.min.js"></script>

<!-- Include all compiled plugins (below), or include individual files as needed -->
<script src="${pageContext.request.contextPath}/bootstrap-3.3.7-dist/js/bootstrap.min.js"></script>
<script src="${pageContext.request.contextPath}/js/userinfo/userinfo.js"></script>